Skip to content

Remove Vidal gauge#331

Merged
mtfishman merged 1 commit intomainfrom
mf/remove-vidal
Apr 24, 2026
Merged

Remove Vidal gauge#331
mtfishman merged 1 commit intomainfrom
mf/remove-vidal

Conversation

@mtfishman
Copy link
Copy Markdown
Member

@mtfishman mtfishman commented Apr 24, 2026

Summary

Delete VidalITensorNetwork and its supporting machinery — src/gauging.jl (188 lines), the apply(::Union{NamedEdge, ITensor}, ::VidalITensorNetwork; ...) method in src/apply.jl (~72 lines), and test/test_gauging.jl. Trim the Vidal cases out of test/test_apply.jl (the SBP/GBP/exact fidelity comparisons stay).

Breaking:

  • VidalITensorNetwork type removed, along with vidalitensornetwork_preserve_cache, vidal_gauge_isometry / vidal_gauge_isometries, gauge_error, the ITensorNetwork(::VidalITensorNetwork; ...) round-trip constructor, update(::VidalITensorNetwork; ...), and the apply(gate, ::VidalITensorNetwork; ...) specialization.

Downstream impact

  • Tennis.jl: no Vidal uses (GitHub code search).

  • Other ITensor-org repos: no hits.

  • Third-party consumers with Vidal usage (out-of-scope for this org but worth noting):

    Both are pinned and will be protected by SemVer (0.17 → 0.18 breaking). They'll stay on 0.17.x until they choose to migrate.

Incidental import cleanups

A few imports were previously available inside ITensorNetworks as a side effect of using clauses in src/gauging.jl. They are now imported directly by the files that actually use them:

  • ITensors.NDTensors: scalartypesrc/apply.jl, src/abstractitensornetwork.jl
  • ITensors: tagssrc/apply.jl, src/abstractitensornetwork.jl

Version

Bumps to 0.18.0 (pre-1.0 minor bump = breaking) and updates pinned ITensorNetworks compat in test/, docs/, and examples/ Project.toml.

Delete `src/gauging.jl` (`VidalITensorNetwork` type + `ITensorNetwork`
round-trip constructor + `vidalitensornetwork_preserve_cache` +
`vidal_gauge_isometry` / `vidal_gauge_isometries` + `gauge_error`),
drop the corresponding `apply(::Union{NamedEdge, ITensor}, ::VidalITensorNetwork; ...)`
method from `src/apply.jl`, remove `include("gauging.jl")` from
`src/ITensorNetworks.jl`, delete `test/test_gauging.jl`, and trim the
Vidal cases out of `test/test_apply.jl` (leaving the SBP/GBP/exact
fidelity comparisons in place).

A few imports previously available inside `ITensorNetworks` as a side
effect of `using` clauses in `src/gauging.jl` are now added directly
to the files that use them:
- `ITensors.NDTensors: scalartype` in `src/apply.jl` and
  `src/abstractitensornetwork.jl`
- `ITensors: tags` in `src/apply.jl` and `src/abstractitensornetwork.jl`

Bump to 0.18.0 (breaking, pre-1.0 minor bump) and update pinned
`ITensorNetworks` compat in `test/`, `docs/`, and `examples/` Project.toml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.04%. Comparing base (04b80c5) to head (a2266c0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #331      +/-   ##
==========================================
- Coverage   72.51%   71.04%   -1.47%     
==========================================
  Files          71       70       -1     
  Lines        3496     3360     -136     
==========================================
- Hits         2535     2387     -148     
- Misses        961      973      +12     
Flag Coverage Δ
docs 43.99% <ø> (+1.74%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mtfishman mtfishman merged commit dbb07fe into main Apr 24, 2026
16 of 17 checks passed
@mtfishman mtfishman deleted the mf/remove-vidal branch April 24, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant